import {VantResolver,ElementPlusResolver} from "unplugin-vue-components/resolvers";

import Components from "unplugin-vue-components/webpack";

import AutoImport from "unplugin-auto-import/webpack";

export default {
    plugins:[
        Components({
            resolvers:[VantResolver(),ElementPlusResolver()],
            dts:"./src/dts/components.d.ts"
        }),
        AutoImport({
          resolvers:[ElementPlusResolver()],
          imports: ['vue', 'vue-router', 'vue-i18n', '@vueuse/head', '@vueuse/core'],
          dts:"./src/dts/hooks.d.ts"
      }),
    ],
    module: {
      rules: [
        {
          test: /\.css$/,
          use: ["style-loader", "css-loader", "postcss-loader"]
        },
        {
          test: /\.s[a|c]ss$/,
          use: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader']
        }
      ]
      }
}